package top.winshu.common.type;

import java.io.Serializable;

/**
 * 通用类型
 *
 * @author winshu
 * @since 2021/11/20
 **/
public class TypeInfo implements Serializable {

    private String code;

    private String name;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static TypeInfo create(String code, String name) {
        TypeInfo info = new TypeInfo();
        info.setCode(code);
        info.setName(name);
        return info;
    }
}
